package com.command.self;

public class Client {
    public static void main(String[] args) {
        TV tv = new TV();
        TvOnCommand tvOnCommand = new TvOnCommand(tv);
        TvOffCommand tvOffCommand = new TvOffCommand(tv);
        Controller controller = new Controller();
        controller.setCommand(0,tvOnCommand,tvOffCommand);
        controller.executeOnCommand(0);
        controller.executeOffCommand(0);
        controller.undoCommand();
    }
}
